package cn.hiapi.shopkeeper.jpa.activity;

import cn.hiapi.basic.jpa.BasicRepository;
import cn.hiapi.shopkeeper.entity.activity.ActivityVoteOther;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;

/**
 * @author AdinZ
 * @date 2023/2/3 1:23
 */
public interface ActivityVoteOtherJpa extends BasicRepository<ActivityVoteOther,Long> {
    @Modifying
    @Query("delete from ActivityVoteOther e where e.aid=?1")
    Integer deleteByAid(long aid);
}
